#!/usr/bin/env python

"""
Dumb network scannereeeah
"""

import socket
import os

host = 'localhost'
port = 631
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ret = s.connect_ex((host,port))
if ret == 0:
	print 'Port is open'
else:
	print 'Port is closed'
